import { CACHE_MANAGER, Inject, Injectable } from '@nestjs/common';
import { Cache } from 'cache-manager'
import { RedisClientType } from 'redis/dist/lib/client';

@Injectable()
export class LocalCacheService {
    public store:RedisClientType;
    constructor(
        @Inject(CACHE_MANAGER) private cacheManager:Cache
    ) {
        const store:any = this.cacheManager.store
        this.store = store.getClient()
    }
}
